package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
public class News {
    private Integer id;
    private String title;
    private String img;
    private String content;
    private String date;
    private String video;
    private String url;
    /**
     * 正文图片
     */
    @TableField(exist = false)
    private List<String> images;

    @Override
    public String toString() {
        return "News{" +
                "title='" + title + '\'' +
                ", img='" + img + '\'' +
                ", video='" + video + '\'' +
                ", url='" + url + '\'' +
                ", images=" + images +
                '}';
    }
}
